<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="${ctx}/static/jquery-1.9.1.min.js"></script>
    <script type="text/javascript">
        var basePath = '${ctx}';
        $(function () {
            $.ajax({
                type: 'post',
                url: basePath + '/getUserPage',
                dataType: 'json',
                data: {
                    page: 1,
                    pageSize: 2
                },
                success: function (msg) {
                    $("#message").html(JSON.stringify(msg));
                }
            });
        });
    </script>
</head>
<body>
<div id="message">xxxxxx</div>
</body>
</html>
